package cn.edu.scau.cmi.dengshixin.abstractFactory;

import cn.edu.scau.cmi.dengshixin.brand.Aonong;
import cn.edu.scau.cmi.dengshixin.factoryProduct.Meat;
import cn.edu.scau.cmi.dengshixin.factoryProduct.AonongBeaf;
import cn.edu.scau.cmi.dengshixin.factoryProduct.AonongChicken;
import cn.edu.scau.cmi.dengshixin.factoryProduct.AonongPork;

public class AonongMeatFactory extends Factory implements Aonong {

	public Meat produce(String meatName) {
		Meat meat = null;
		switch(meatName) {
		case "Beaf":
			meat = new AonongBeaf();
			break;
		case "Chicken":
			meat = new AonongChicken();
			break;
		case "Pork":
			meat = new AonongPork();
			break;
		}
		return meat;
	}

}
